Skip to content

Snap distance measurements to visible geometry - #66

Merged
mahach666 merged 1 commit into
mainfrom
codex/measure-edge-snapping
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/measure-edge-snapping

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Changes

  • Preview the endpoint and snap to visible vertices, edge midpoints and edges within eight CSS pixels. Fall back to the picked surface.
  • Reuse GPU picking for visibility and occlusion, apply instance transforms and clipping, and omit coplanar triangulation diagonals.
  • Cover merged and instanced geometry, RGBA8 fallback, zoom, clipping and occlusion. Record hover latency alongside picking on Synthetic-400k.

Verification

  • 157 JavaScript unit tests and 199 Chromium/Firefox end-to-end tests.
  • Release build, 176 tests each on .NET 8 and .NET 10, and DocFX.
  • Exported Schependomlaan IFC and racbasicsampleproject RVT, and verified that the preview and committed endpoints match in both offline viewers.
  • Synthetic-400k p95 hover was 2.4 ms on RTX 4080 and 12.9 ms on integrated Radeon. Ordinary picking on the same pixels was 2.0 and 11.4 ms.

Closes #40

@mahach666
mahach666 merged commit b39aa4a into main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snap distance measurements to visible vertices and edges

1 participant